import request from '@/utils/request'

// 报关面单-列表
export const billDeclareList = data =>
  request({
    url: `/bill/declare/index`,
    method: 'post',
    data,
  })

// 报关面单-详情
export const billDeclareDetail = params =>
  request({
    url: `/bill/declare/detail`,
    method: 'get',
    params,
  })

// 报关面单-创建
export const createbill = data =>
  request({
    url: `/bill/declare/create`,
    method: 'post',
    data,
  })

// 报关面单-编辑
export const updatebill = data =>
  request({
    url: `/bill/declare/update`,
    method: 'post',
    data,
  })

// 报关面单-删除
export const deletebill = data =>
  request({
    url: `/bill/declare/delete`,
    method: 'post',
    data,
  })

// 报关面单-启用禁用
export const statusbill = data =>
  request({
    url: `/bill/declare/status`,
    method: 'post',
    data,
  })

export const getBillOptions = params =>
  request({
    url: `/bill/declare-type/get-options`,
    method: 'get',
    params,
  })
